/**
 * 
 */
package com.dp.creat.prototype;

/**
 * @author Sunaina.Sharma
 * 
 */
public class Person implements Cloneable {

	String firstname;
	String lastname;
	int age;

	/**
	 * Default constructor
	 * 
	 */
	public Person() {
		firstname = "Tom";
		lastname = "Sharma";
		age = 10;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#clone()
	 */
	public Person clone() {
		return new Person();
	}

	/**
	 * @param age
	 */
	public void modifyAge(int newage) {
		age = newage;
	}

	@Override
	public String toString() {
		return "FirstName ::" + firstname + " LastName ::" + lastname
				+ " Age ::" + age;
	}
}
